<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .myDiv {
            width: 100px;
            height: 100px;
            line-height:100px;
            text-align:center;
            background-color: blanchedalmond;
        }
    </style>
</head>
<div class="myDiv">
    <p>test</p>
</div>
<body>
<script>
   // 判断素数
    function isPrime(n) {
        for (let i = 2; i <= n / 2; i++) {
            if (n % i === 0) {
                return false
            }
        }
        return true
    }

    let count = 0; // 统计素数
    let prime = []
    for (let i = 2; i < 100; i++) {
        if (isPrime(i)) {
            prime.push(i)
            count++
        }
    }
    console.log(prime)
    console.log(count)
</script>
</body>
</html>
